package gc;

/**
 * -Xmx20m
 */
public class SystemGCDemo {
    public static void main(String[] args) throws InterruptedException {
        byte[] bytes;
        for(;;) {
             bytes = new byte[1024 * 1024];
             System.gc();
             System.out.println("call gc once");
             Thread.sleep(2000);
        }
    }
}
